package unittest;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import treeedit.BZAddressParser;
import treeedit.Tree;
import treeedit.Utils;

public class UtilsTest_Postorder {

	String result = "abcdef";

	@Test
	public void testConvertPostorderTree() {
		Tree tree1 = createDumpT1();
		assertEquals("Result", result, Utils.convertPostorderTree(tree1, ""));
	}
	
	static Tree createDumpT1() {
		Tree f = new Tree("f");
		Tree d = f.addChild(new Tree("d"));
		d.addChild(new Tree("a"));
		Tree c = d.addChild(new Tree("c"));
		c.addChild(new Tree("b"));
		f.addChild(new Tree("e"));
		return f;
	}

}
